// Author: wsfuyibing <682805@qq.com>
// Date: 2025-07-01

package buy

import (
	"server/app/http/models"
	"server/app/http/responses"
	"server/app/lib/order/operations"
)

// Response
// 出参.
type Response struct {
	Order  *responses.OrderResponse
	Prepay *operations.Prepay
}

func (o *Response) WithOrder(m *models.Order) *Response {
	if m != nil {
		o.Order = (&responses.OrderResponse{}).With(m)
	}
	return o
}
